<?php
###############   COPYLEFT GPLv3 LICENSE   ###############
##
## JFX Version 0.2.9
## Website Management Software
## www.jfxcms.com
##
## Copyright 2009 GPLv3 - http://www.opensource.org/licenses/gpl-3.0.html
##
## Anthony Gallon
## oi_antz@hotmail.com
##
## Permission is hereby granted to any person having a copy of this software
## to freely use and modify as required so long as the copyright notices
## and branding remain intact.
##
## Full license details available at http://www.jfxcms.com/license
##
###############   COPYLEFT GPLv3 LICENSE   ###############

$lang = array(
    'sitename' => 'My JFX Website',
    'ap_title_admin' => 'Administration',
    'ap_title_login' => 'Login',
    'ap_title_credits' => 'Credits',
    'ap_title_default' => 'Home',
    'ap_title_delete-page' => 'Delete Page',
    'ap_title_dev-stats' => 'Dev Stats',
    'ap_title_domains' => 'Domains',
	'ap_title_domains_root' => 'Set Root Domain',
	'ap_title_domains_new' => 'New Domain',
	'ap_title_domains_delete' => 'Delete',
	'ap_title_domains_default' => 'Default Domain',

    'ap_title_edit-page' => 'Edit Page',
    'ap_title_export' => 'Import &amp; Export',
    'ap_title_lang' => 'Languages',
    'ap_title_modules' => 'Modules',
    'ap_title_new-page' => 'New Page',
    'ap_title_perms' => 'Permissions',
    'ap_title_preview-page' => 'Preview',
    'ap_title_run-test' => 'Run Test',
    'ap_title_sort-pages' => 'Sort Pages',
    'ap_title_test-load' => 'Test Load',
    'ap_title_users' => 'Users',
    'ap_title_workspaces' => 'Workspaces',
    'ap_title_export_export-block' => 'Export Block',
    'ap_title_export_export-page' => 'Export Page',
    'ap_title_export_import-block' => 'Import Block',
    'ap_title_export_import-page' => 'Import Page',
    'ap_title_export_import-template' => 'Import Template',
    'ap_title_lang_install' => 'Install',
    'ap_title_lang_translate' => 'Translate',
    'ap_title_modules_admin' => 'Administration',
    'ap_title_modules_list' => 'List',
    'ap_title_modules_order' => 'Sort',
    'ap_title_workspaces_assign' => 'Assign Users',
    'ap_title_workspaces_copy' => 'Copy Content',
    'ap_title_workspaces_list' => 'List',
    'ap_title_workspaces_new' => 'New',
    'ap_title_workspaces_publishing' => 'Publishing',

    'menu_title_website_templates' => 'Templates',
    'menu_title_new_template' => 'New Template',
    'menu_title_view_templates' => 'Templates',
    

    'menu_title_website_content' => 'Website Content',
    'menu_title_user_management' => 'User Management',
    'menu_title_system_configuration' => 'System Configuration',
    'menu_title_import_export' => 'Import &amp; Export',
    'menu_title_import_export_2' => 'Import &amp; Export',
    'menu_title_import_page' => 'Import Page',
    'menu_title_import_block' => 'Import Block',
    'menu_title_import_template' => 'Import Template',
    'menu_title_export_page' => 'Export Page',
    'menu_title_export_block' => 'Exprot Block',
    'menu_title_modules' => 'Modules &amp; Extensions',
    'menu_title_module_list' => 'Module List',
    'menu_title_languages' => 'Languages &amp; Translation',
    'menu_title_install_language' => 'Install New Language',
    'menu_title_translate_system' => 'Translate System',
    'menu_title_domains' => 'Domains &amp; Websites',
    'menu_title_new_domain' => 'Create New Domain',
    'menu_title_set_domain_root' => 'Set Domain Root Page',
    'menu_title_delete_domain' => 'Delete a Domain',
    'menu_title_workspaces' => 'Workspaces &amp; Versioning',
    'menu_title_list_workspaces' => 'List Workspaces',
    'menu_title_new_workspace' => 'New Workspace',
    'menu_title_workspace_users' => 'Workspace Users',
    'menu_title_merge_workspaces' => 'Merge Workspaces',
    'menu_title_staff_management' => 'Staff Management',
    'menu_title_staff_permissions' => 'Staff Permissions',
    'menu_title_staff_users' => 'Staff User List',
    'menu_title_website_pages' => 'Website Pages',
    'menu_title_sort_pages' => 'Sort Pages',
    'menu_title_view_pages' => 'View Pages',
    'menu_title_new_page' => 'New Page',
    

    'session_expired_force_login' => 'Your session has expired, please login again',

    'module_name' => 'Module Name',
    'theme_name' => 'Theme Name',
    'install_uninstall' => 'Install / Uninstall',
    'io' => 'I/O',
    'administration' => 'Administration',
    'import_export' => 'Import / Export',
    'cannot_uninstall_core_module' => 'Cannot uninstall core module!',
    'uninstall_legend' => 'Uninstall Module %s',
    'confirm_uninstall' =>'Uninstall Now',
    'uninstall_pre_message' => 'Are you sure you want to uninstall this module?',
    'install_pre_message' => 'This operation may alter your database and files, continue?',
    
    'page_parent' => 'Parent Page',
    'page_legend' => 'Edit Page Details',
    'page_edit_details' => 'Edit Page Details',
    'domain_legend' => 'Edit Domain Details',
    'perm_super_admin' => 'Super Admin (Unrestricted)',
    'perm_grant_permissions' => 'Grant Admin User Permissions',
    'perm_manage_users' => 'Manage Admin Users',
    'perm_edit_page' => 'Edit page content',
    'perm_manage_modules' => 'Manage modules',
    'perm_create_page' => 'Create pages',
    'perm_create_blocks' => 'Create blocks',
	'perm_create_templates' => 'Create Templates',
	'perm_delete_templates' => 'Delete Templates',
	'perm_edit_templates' => 'Edit Templates',
	'perm_manage_templates' => 'Manage Templates',

    'perm_edit_blocks' => 'Edit blocks',
    'perm_save_templates' => 'Save templates',
    'perm_manage_domains' => 'Manage Domains',
    'perm_manage_workspaces' => 'Manage Workspaces',
    'perm_manage_pages' => 'Manage Pages',
    'perm_manage_configuration' => 'Manage Configuration',
    'perm_publish_workspaces' => 'Copy Workspace Content',
    'perm_edit_block' => 'Edit Block Content',
    'perm_delete_block' => 'Delete Blocks',
    'perm_save_block_template' => 'Save Block Templates',
    'perm_style_block' => 'Edit Block Styles',
    'perm_move_block' => 'Move Blocks',
    'perm_delete_pages' => 'Delete Pages',
    'perm_export_block' => 'Export Blocks',
    'perm_export_page' => 'Export Pages',
    'perm_import_block' => 'Import Blocks',
    'perm_import_page' => 'Import Pages',
    'perm_import_template' => 'Import Template',
    'perm_install_modules' => 'Install Modules',
    'perm_uninstall_modules' => 'Un-install Modules',
    'perm_manage_languages' => 'Manage Languages',
    'perm_translate_system' => 'Translate System',
    'perm_new_workspace' => 'New Workspace',

	'module_title' => 'Core Module',
	'button_move_up_title' => 'Move Up',
	'button_move_up_alt' => 'Up',

	'button_move_down_title' => 'Move Down',
	'button_move_down_alt' => 'Down',

	'button_insert_title' => 'Insert Block',
	'button_insert_alt' => 'Insert',

	'button_delete_alt' => 'Delete',
	'button_delete_title' => 'Delete Block',

	'button_edit_alt' => 'Edit',
	'button_edit_title' => 'Edit Page',

	'button_style_alt' => 'Update styles',
	'button_style_title' => 'Update block styles',
	
	'invalid_file' => 'Invalid file',
	'error_no_default_page' => 'Could not import file, there is no default page in this installation!',
	'can_only_have_one_root_div' => 'Only one div can exist on root level. Suggested to wrap contents in a root div.',
	'no_root_div' => 'Could not find a root div, please insert a div into the template.',
	'cannot_use_droppabe_class' => 'Droppable class can only be applied to div elements',

	'invalid_language' => 'Invalid Language',
	'nonpermitted_workspace' => 'Unpermitted to that workspace',
	'logout_success' => 'You have been logged out',
	'please_enable_cookies' => 'Please enable cookies',

	'no_workspace' => 'Not assigned to a workspace. Please contact the administrator.',
	'search_not_enabled' => 'Sorry, search is not enabled at present.',
	'invalid_password' => 'Invalid password',
	'invalid_username' => 'Invalid username',
	'session_restored_success' => 'Session restored, you may close the window now',
	'username' => 'Username',
	'password' => 'Password',
	'submit' => 'Submit',
	'code' => 'Code',
	'login_submit' => 'Login',
	'login_legend' => 'Login to Control Panel',
	'workspace_change_success' => 'Workspace has been changed',
	'workspace_not_permitted' => 'You are not permitted to use that workspace',

	'title_domains' => 'Domains',
	'title_users' => 'Users',
	'title_permissions' => 'Permissions',
	'title_workspaces' => 'Workspaces',
	'title_languages' => 'Languages',
	'title_modules' => 'modules',
	'title_import_export' => 'Import / Export',

	'page_deleted_success' => 'The page has been deleted!',
	'delet_page_recursive' => 'I\'m sure',
	'delete_page_submit' => 'Delete',

	'delete_page_confirm_submit' => 'Confirm Delete',
	'confirm_page_delete_legend' => 'Confirm deleting of "{$0}" and moving new pages into "{$1}"',
	'num_files_in_website' => '{$0} files in the website ',


	'num_lines_in_website' => '{$0} lines in the website',
	'cannot_edit_template_page' => 'You cannot edit the templates page. Use template management in the left column.',
	'permission_denied' => 'Insufficient Permission',
	'button_export_page' => 'Export Page',
	'button_export_block' => 'Export Block',
	'button_import_page' => 'Import Page',
	'button_import_block' => 'Import Block',
	'button_import_template' => 'Import Template',
	'install_language' => 'Install Language',
	'translate_language' => 'Translate',
	'default_new_page_heading' => 'New Page',
	'default_new_page_menu' => 'New Page',
	'permissions_updated_ok' => 'Permissions updated!',
	'select_a_user' => 'Select a User',
	'select_a_workspace' => 'Select a Workspace',
	'select_a_language' => 'Select a language',
	'select_a_module' => 'Select a module',

	'invalid_page_selected' => 'Invalid page selected',
	'username_already_registered' => 'Username is already registered',

	'password_confirmation_no_match' => 'Password confirmation does not match',
	'password_too_short' => 'Password must be greater than 6 characters',
	'no_workspace_selected' => 'Must have access to a workspace',

	'default_workspace_must_be_accessible' => 'Default workspace must be accessible too',
	'success_new_user' => 'User created, now you can grant permissions',
	'new_username' => 'Username',

	'new_name' => 'Name',
	'new_email' => 'Email',
	'new_password' => 'New Password',

	'new_template_tab' => 'New Template',
	'list_template_tab' => 'List Templates',


	'new_confirm_password' => 'Confirm Password',
	'new_workspaces' => 'Access to these workspaces',
	'new_default_workspace' => 'Default workspace',

	'new_submit' => 'Add User',
	'new_legend' => 'Add a backend user',
	'workspace_list' => 'Workspace List',

	'new_workspace' => 'New Workspace',
	'assign_users' => 'Assign Users',
	'copy_workspaces' => 'Copy Workspaces',

	'block_exec_order_success' => 'Block Execution Order saved!',
	'block_exec_order_heading' => 'Block Execution Order',
	'block_exec_order_description' => 'You can alter the order of execution for blocks on any page. This is handy because some blocks may depend on other blocks
being executed first.',

	'edit_submit_button' => 'Update User',
	'edit_legend' => 'Edit backend user',
	'invalid_block_id' => 'Invalid block id',

	'invalid_parent_page' => 'Invalid Parent Page',
	'slug_reserved' => 'Slug is a system reserved name',
	'invalid_mirror_id' => 'Invalid Mirror Id: {$0}',
	'slug_already_in_use' => 'Slug already in use',
	'page_update_success' => 'Page successfully updated',
	
	'is_default' => 'Is Default',
	'page_slug' => 'Page Slug',
	'page_title' => 'Title',
	'page_menu' => 'Menu Text',
	'is_published' => 'Is Published',
	'use_mirror' => 'Mirror another page',
	'selected_mirror' => 'Selected Mirror',
	'edit_page_submit' => 'Update',
	'confirm_insert_block' => 'Confirm Insert Block',
	'add_block_legend' => 'Add Block',
	'insert_block_title' => 'Insert a new block',
	'templates' => 'Templates',
	'modules' => 'Modules',
	'cannot_update_styles_on_page_block' => 'Cannot update styles on the page block',
	'unsaved_block' => 'This block has not been saved!',
	'styles_updated' => 'Styles Updated!',
	'class_names' => 'Class Names',
	'extra_classnames' => 'System Class Names',
	'is_droppable' => 'Is droppable',
	'template' => 'Template',
	'css_style' => 'CSS Style',
	'update_style_submit' => 'Submit',
	'style_block_legend' => 'Style Settings',
	'invalid_domain_for_default' => 'Invalid domain to set default!',
	'default_domain_success' => 'Domain set to default!',
	'domain' => 'Domain',
	'set_default_domain_submit' => 'Make Default Domain',
	'set_default_domain_legend' => 'Make a new Default Domain',
	'cannot_delete_only_domain' => 'You cannot delete the only domain in the system, the website would no longer work!',
	'delete_domain_submit' => 'Confirm Delete',
	'confirm_delete_domains' => 'Confirm deletion of {$0} domains',
	'confirm_delete_heading' => 'Confirm delete',
	'confirm_delete_description' => 'This will delete all pages and blocks associated to this domain!',
	'domain_deleted_success' => 'Domain deleted!',
	'delete_domain_legend' => 'Delete a Domain',
	'domain_created_success' => 'Domain created!',
	'new_domain_submit' => 'Add Domain',
	'new_domain_legend' => 'Create new domain',
	'invalid_domain' => 'Invalid domain selected',
	'reassign_domain_success' => 'Your domain has been reassigned',
	'new_root_domain_heading' => 'Setting new root page for domain',
	'new_root_domain_description' => 'Note, the page selected here will be moved to root level and will become a domain. The existing domain (if any) will become
a sub-page of the selected page.',
	'assign_root_domain_submit' => 'Select Root Page',
	'assign_root_domain_legend' => 'Select the root page',
	'export_template_heading' => 'Export Template',
	'error_no_templates' => 'No templates in this workspace',
	'invalid_parent_id' => 'Invalid parent id',
	'file_upload_failed' => 'File upload failed',
	'could_not_load_file' => 'Could not load the file',
	'not_block' => 'Not a block export',
	'failed_to_load_file' => 'Failed to load content of file',
	'page_to_copy_into' => 'Page to copy into<',
	'file_to_import' => 'File to import',
	'import_block_submit' => 'Import',
	'import_block_heading' => 'Import Block',
	'import_block_legend' => 'Import pages',
	'import_page_submit' => 'Import',
	'import_page_legend' => 'Import Pages',
	'no_div_tags_found' => 'No <DIV> tags found!',
	'cannot_have_id' => 'Imported templates cannot have "id" attributes on divs: found div#{$0}.. Use class names instead',
	'template_imported_success' => 'Template has been imported',
	'title_for_new_template' => 'Title for new template',
	'default_new_template_title' => 'New Template',
	'import_template_submit' => 'Import',
	'import_template_heading' => 'Import template',
	'import_template_description' => 'Templates can be dragged onto any page. Templates are stored in the Live workspace.
You can upload a template here and it will appear in the toolbar when you edit any page.',
	'import_template_legend' => 'Import Template',
	'iso_blank_error' => 'ISO cannot be blank',
	'iso_already_used' => 'ISO is already in use',
	'language_copy_success' => 'The language has been copied, you may now translate it',
	'new_language_iso' => 'ISO Language Code',
	'new_language_origin' => 'Language to copy',
	'new_language_submit' => 'Create Language',
	'new_language_legend' => 'New Language Details',
	'module_has_no_admin' => 'This module does not implement the "admin" method',
	'module_already_installed' => 'Module {$0} is already installed',
	'module_imported_success' => 'Module imported!',
	'invalid_module' => 'Invalid module to install',
	'module_already_installed' => 'The module is already installed',
	'could_not_instantiate_module' => 'Could not instantiate the module',
	'requires_dependencies' => 'Requires module "{$0}" version {$1} to be installed',
	'requires_upgraded_dependencies' => 'Module "{$0}" is only verion {$1}, requires {$2}',
	'module_install_success' => 'Module was installed',
	'module_install_error' => 'Error installing module',
	'uninstall_module' => 'Uninstall {$0}',
	'module_not_installed' => 'The module is not installed',
	'module_uninstall_success' => 'Module was uninstalled',
	'overwrite_existing_files' => 'Overwrite existsing files?',
	'upload_module_legend' => 'Upload a module',
	'invalid_module_name_case' => '{$0} is an invalid module name: must be lowercase',
	'invalid_module_name_chars' => '{$0} is an invalid module name: must be alphanumeric',

	'title_is_blank' => 'Title is blank!',
	'no_code' => 'No code given',
	'new_template_success' => 'Template successfully created!',
	'new_template_heading' => 'Create new template',
	'new_template_title' => 'Template Title',
	'new_template_legend' => 'Template edit',
	'workspace_updated_success' => 'Updated workspace assignments',
	'cannot_find_from_page_in_workspace' => 'The page to copy from cannot be found in this workspace',
	'cannot_find_to_page_in_workspace' => 'The page to copy to cannot be found in this workspace',
	'source_and_dest_same' => 'Source and destination are identical!',
	'cannot_move_into_subpage' => 'Impossible to move a page into a subpage of itself!',
	'workspace_copy_success' => 'Copied successfully!',
	'page_to_be_copied' => 'Page to be copied<br />
(From ',
	'page_to_copy_into' => 'Page to copy <u>INTO</u><br />
(To ',
	'delete_dead_pages' => 'Delete Dead Pages?',
	'copy_workspaces_legend' => 'Select Pages To Copy',
	'workspace_created_success' => 'Workspace created!',
	'workspace_title' => 'Workspace Title',
	'new_workspace_legend' => 'New Workspace Details',
	'new_workspace_submit' => 'Create!',
	'no_default_domain' => 'Could not find a default domain, please visit the domains configuration and set a domain to be the default',
	'invalid_domain_copy_from' => 'Could not find a domain to copy from',
	'page_copy_success' => 'Pages Copied Successfully!',
	'could_not_copy_into_sub' => 'Could not copy {$0}: trying to assign parent id to itself! Hint: page slugs must be unique per domain per workspace...',
	'heading' => 'Core Module',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',
	'' => '',









);




$contentLang = array(
    array(
        'label' => 'heading',
        'id' => '1',
        'value' => $CONFIG->domain
    ),
    array(
        'label' => 'page_menu',
        'id' => '1',
        'value' => $CONFIG->domain
    ),
    array(
        'label' => 'page_content',
        'id' => '1',
        'value' => ''
    ),
    array(
        'label' => 'heading',
        'id' => '2',
        'value' => $CONFIG->domain
    ),
    array(
        'label' => 'page_menu',
        'id' => '2',
        'value' => $CONFIG->domain
    ),
    array(
        'label' => 'page_content',
        'id' => '2',
        'value' => ''
    ),
    array(
        'label' => 'heading',
        'id' => '3',
        'value' => 'Templates'
    ),
    array(
        'label' => 'page_menu',
        'id' => '3',
        'value' => 'Templates'
    ),
    array(
        'label' => 'page_content',
        'id' => '3',
        'value' => ''
    ),
    array(
        'label' => 'heading',
        'id' => '4',
        'value' => 'Home Page'
    ),
    array(
        'label' => 'page_menu',
        'id' => '4',
        'value' => 'Home Page'
    ),
    array(
        'label' => 'page_content',
        'id' => '4',
        'value' => ''
    ),
    array(
        'label' => 'heading',
        'id' => '5',
        'value' => 'System Pages'
    ),
    array(
        'label' => 'page_menu',
        'id' => '5',
        'value' => 'System Pages'
    ),
    array(
        'label' => 'page_content',
        'id' => '5',
        'value' => ''
    ),
    array(
        'label' => 'heading',
        'id' => '6',
        'value' => '404 Not Found'
    ),
    array(
        'label' => 'page_menu',
        'id' => '6',
        'value' => '404 Not Found'
    ),
    array(
        'label' => 'page_content',
        'id' => '6',
        'value' => ''
    ),
    array(
        'label' => 'workspace_title',
        'id' => '1',
        'value' => 'Live Workspace'
    ),
    array(
        'label' => 'workspace_title',
        'id' => '2',
        'value' => 'Draft Workspace'
    )

);
























$lang['templates_help'] = <<<HELP
<h1>Help with templates</h1>
<p>There is only one physical template file which is used for every single page
rendered by the CMS. You should never be concerned with changing that file, instead
JFX provides ample means for managing templates via the administration interface.
It is from the point-and-click management of templates that JFX distinguishes itself.</p>
<p>JFX Templates are blocks that you can drag onto a page in the same way you can
add module blocks to your pages. Templates have a specific purpose so that every time you
add a template to a page it is a reference to a single block. This means that if
you have added a template to 20 pages throughout your website, a change to the
template will be reflected across all 20 pages. As such, templates cannot be altered
at page level, however, may contain divs into which any other block can be dragged onto
when editing a page so that any page can have unique content as well as references to
templates.
</p>
<p>Every div in your template that is droppable (meaning other blocks can be inserted
into it), must contain a classname "droppable" and must have an ID. The ID becomes
important when you want to swap templates (for example your existing page uses a
three colum layout and you want to change to a two-column layout.</p>
<p>"Root Div", "Root Style" and "Root Script" are terms for the outermost elements in your template. It is a
requirement that all templates must have a Root div and all other html tags (except the root "style" and "script" tags)
must be an ancestor of the Root div. The root div and any droppable divs must have
an id attribute.</p>
<p>The root "style" and "script" tags will be rendered inside the
head tags. Notice that only script and style tags that are declared outside the
root div will be displayed in the head. If you define style or script tags within the
root div, these will not be moved.</p>
<p>There are two ways to edit a template, and the process of creating a template
will usually involve them both. First thing you must do is declare the elements
of the template as pure XHTML. You can do this by typing into the codepress editor
or uploading a text file. The system will check that it complies with requirements
and when successful you will be able to edit the template by dragging blocks onto
it in the same manner of editing a page.</p>

HELP;





$lang['templates_intro'] = <<<INTRO
<p>A hand coder might prefer to type a template into the form. To do this you need
to know HTML and optionally CSS and JavaScript. If you are more comfortable
dragging blocks to the page, you can enter the following code and continue to 
step 2.</p>
<pre>
<code>
&lt;div id="my-new-div" class="droppable">&lt;/div>
&lt;style type="text/css">&lt/style>
&lt;script type="text/javascript" language="javascript">&lt/script>
</code>
</pre>
<h3>Tip</h3>
<p>Use class="droppable" on divs that will contain dynamic content. Compare
with other CMS's which use a token such as {\$content}, ###CONTENT###,
&lt;joc:include type="module" ...>, {content name="" ...}, :|content|: or
whatever other pattern someone may come up with. All it does is tell the system
that this is a placeholder to be replaced with dynamic content. In JFX, you will
be able to drag blocks onto the droppable divs.
</p>
<p><a href="{$CONFIG->prefix}{$CONFIG->adminFolder}/templates/help/">Click here for more help</a></p>
INTRO;






